package com.ft.oa.service.approval.impl;


import com.ft.oa.domain.approval.ApplyForApproval;
import com.ft.oa.domain.check.ExecProjectExamine;
import com.ft.oa.domain.dto.ApiResult;
import com.ft.oa.service.approval.ApplyForApprovalService;
import com.ft.oa.service.approval.BusinessProcessService;
import com.ft.oa.service.check.ExecProjectExamineService;
import com.ft.oa.service.development.DevExecService;
import com.ft.oa.service.project.BidProjectService;
import com.ft.oa.service.project.ExecProjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class BusinessProcessServiceImpl implements BusinessProcessService {


    @Resource
    private ExecProjectService execProjectService;

    @Resource
    private BidProjectService bidProjectService;

    @Resource
    private ExecProjectExamineService execProjectExamineService;

    @Resource
    private DevExecService devExecService;

    @Resource
    private ApplyForApprovalService applyForApprovalService;


    @Override
    public ApiResult approvalDetail(ApplyForApproval applyForApproval) {
        List<ApplyForApproval> businessProcessNodeList = applyForApprovalService.selectBusinessProcessNodeList(applyForApproval.getRelationId(),applyForApproval.getRelationType());
        return ApiResult.successWithData(businessProcessNodeList);

    }
}
